package ex1;

/**
 * Created with IntelliJ IDEA.
 * User: Roi
 * Date: 10/26/13
 */
public class Token {

    protected int line;
    protected int column;
    protected String tag;
    protected String value;

    public Token(int line, int column, String tag, String value) {
        this.line = line + 1;
        this.column = column + 1;
        this.tag = tag;
        this.value = value;
    }

    @Override
    public String toString() {
        return value+"        "+tag+"          "+line+"       "+column;
    }
}
